{include file="header.html"}
<div> 
{include file='ymdian_product/nav.html'}
<form method='post' action='{$appadmin}?m=ymdian_product&a=save'>
<input type='hidden' name='id' style='display:none;' value='{$data.id}' >
 <table class='table table-bordered' width='100%'>
 <tr>
 	<td>名称</td>
    <td>状态</td>
    <td>操作</td>
 </tr>
 {get data=tc model=product fun=kclist()}
 {foreach item=c from=$tc}
 <tr>
 	<td>{$c.title}</td>
    <td>状态</td>
    <td><a href="javascript:;" class="addProduct" url="{$appadmin}?m=ymdian_product&a=addProduct&productid={$c.id}&ajax=1">添加</a></td>
 </tr>
 {/foreach}
 
</form>
</div>
<script>
$(function(){
	$(document).on("click",".addProduct",function(){
		var obj=$(this);
		$.get(obj.attr("url"),function(data){
			skyToast(data.message);
		},"json");
		
	});
});
</script> 
{include file="footer.html"}